package cn.cs.service;


import cn.cs.common.Dto;
import cn.cs.common.Page;
import cn.cs.pojo.CsParts;
import cn.cs.pojo.CsPartsAttribute;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface CsPartsService {

    public CsParts getCsPartsById(String id) throws Exception;

    public List<CsParts> getCsPartsListByMap(Map<String, Object> param) throws Exception;

    public Integer getCsPartsCountByMap(Map<String, Object> param) throws Exception;

    public Integer addCsParts(CsParts csParts) throws Exception;

    public Integer addPartsAttribute(CsPartsAttribute partsAttribute) throws Exception;

    public Integer modifyCsParts(CsParts csParts) throws Exception;

    public Integer deleteCsPartsImgByPartsId(String partsId) throws Exception;

    public Integer updatePartsAttribute(CsPartsAttribute partsAttribute) throws Exception;

    public Integer deletePartsAttribute(String id) throws Exception;

    public Integer insertCsPartsImgList(List<Map<String, Object>> list) throws Exception;

    public Integer deleteCsPartsById(String id) throws Exception;

    public Page<CsParts> queryCsPartsPageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize) throws Exception;

    public Dto saveQrCodeData(HttpServletRequest request, HttpServletResponse response);

    public void downloadExcelPrint(HttpServletRequest request, HttpServletResponse response);

    public Integer updateCsPartsQRcode(Map<String, Object> map) throws Exception;

    public Page<Map<String, Object>> queryCsPartsQRcodePageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize) throws Exception;

    public List<Map<String, Object>> getHistoryByQRcode(String QRcode) throws Exception;

    public Map<String, Object> getPartsByQRcode(String QRcode) throws Exception;

    public Page<Map<String, Object>> getPartsSellNumByMap(Map<String, Object> param, Integer pageNo, Integer pageSize) throws Exception;
}
